home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_perl.idb / usr / freeware / catman / p_man / cat3 / Errno.Z / Errno
Encoding:
Text File  |  1998-10-28  |  1.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      EEEErrrrrrrrnnnnoooo((((3333))))         22223333////OOOOcccctttt////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))          EEEErrrrrrrrnnnnoooo((((3333))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       Errno    - System errno constants
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           use Errno    qw(EINTR EIO :POSIX);
  13.  
  14.  
  15.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.       Errno    defines    and conditionally exports all the error
  17.       constants defined in your system errno.h include file. It
  18.       has a    single export tag, :POSIX, which will export all POSIX
  19.       defined error    numbers.
  20.  
  21.       Errno    also makes %! magic such that each element of %! has a
  22.       non-zero value only if $! is set to that value, eg
  23.  
  24.           use Errno;
  25.  
  26.           unless (open(FH, "/fangorn/spouse")) {
  27.           if ($!{ENOENT}) {
  28.               warn "Get    a wife!\n";
  29.           } else {
  30.               warn "This path is barred: $!";
  31.           }
  32.           }
  33.  
  34.  
  35.      AAAAUUUUTTTTHHHHOOOORRRR
  36.       Graham Barr <gbarr@pobox.com>
  37.  
  38.      CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
  39.       Copyright (c)    1997-8 Graham Barr. All    rights reserved.  This
  40.       program is free software; you    can redistribute it and/or
  41.       modify it under the same terms as Perl itself.
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 10/23/98)
  64.  
  65.  
  66.  
  67.